package com.jiawen.service;

import com.jiawen.service.impl.SchedualHytrixServiceHi;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-hi" , fallback = SchedualHytrixServiceHi.class)
public interface SchedualServiceHi {
    @RequestMapping(value = "/hi" , method = RequestMethod.GET)
    String SayHi(@RequestParam (value = "name") String name);
}
